package com.Iconcat.system.service.impl;

import com.Iconcat.system.entity.CatAdmin;
import com.Iconcat.system.mapper.CatAdminMapper;
import com.Iconcat.system.service.CatAdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.websocket.Session;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * <p>
 * 后台管理员信息 服务实现类
 * </p>
 *
 * @author zzq
 * @since 2023-11-17
 */
@Service
public class CatAdminServiceImpl extends ServiceImpl<CatAdminMapper, CatAdmin> implements CatAdminService {
    @Resource
    private CatAdminMapper catAdminMapper;

    @Override
    public CatAdmin login(String username, String password) {
     return  this.baseMapper.login(username,password);
    }

    @Override
    public int updateByPwd(Integer auid,String password) {
        return this.baseMapper.updateByPwd(auid,password);
    }


}
